package homework_07.homework_Car;

public class Car extends Automoblie{
    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public Car(String brand,int dayRent,String type){
        super(brand,dayRent);
        this.type=type;
    }

    @Override
    public int rent(int days) {

        return getDayRent()*days;
    }
}
